package itheima.d05;

import itheima.d02.log;

import java.lang.reflect.Method;

public class junitFunctionTest {
    public static void main(String[] args) {
        Class< CatJunitTest> cls = CatJunitTest.class;

        Method[] methods = cls.getDeclaredMethods();

        for (Method method : methods) {
            if (method.isAnnotationPresent(MyTest.class)) {
                try {
                    method.invoke(cls.newInstance());
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
